import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ACLGuard } from '@delon/acl';
import { StudentProfileViewComponent } from 'src/app/project/component/icm-student-status/student-profile/student-profile-view.component';
import { AcademicProgressViewComponent } from 'src/app/project/component/icm-student-status/academic-progress/academic-progress-view.component';

const routes: Routes = [
  {
    path: 'student-profile',
    canActivate: [ACLGuard],
    component: StudentProfileViewComponent,
    data: {
      title: '学生学籍',
      reuse: true,
      guard: {
        role: ['ROLE_STUDENT'],
      },
    },
  },
  {
    path: 'academic-progress',
    canActivate: [ACLGuard],
    component: AcademicProgressViewComponent,
    data: {
      title: '学业进展',
      reuse: true,
      guard: {
        role: ['ROLE_STUDENT'],
      },
    },
  },
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class StudentStatusRoutingModule {}
